#include <stdio.h>
#include <string.h>
#include "student.h"

int main(int argc, const char *argv[])
{
	printf("欢迎使用学佳澳学生管理系统\n");
	class_t XJA_25071;
	// 清0 -- 其实只需要  XJA_25071.count = 0; 即可
	memset(&XJA_25071, 0, sizeof(XJA_25071));
	int choose = 0;

	while(1){
		print_menu(); // 打印菜单
		scanf("%d", &choose);
		switch(choose){
		case 1:
			insert_student(&XJA_25071);
			break;
		case 2:
			modify_student(&XJA_25071);
			break;
		case 3:
			delete_student(&XJA_25071);
			break;
		case 4:
			search_student(&XJA_25071);
			break;
		case 5:
			sort_student(&XJA_25071);
			break;
		}
		if(6 == choose){
			break;
		}
		print_student(&XJA_25071);
	}

	printf("欢迎下次使用\n");
	return 0;
}
